package rs.domain;

/* Classe che rappresenta un brano da raccomandare all'utente. */
public class RecommendedTrack implements Comparable<RecommendedTrack> {
	
	private Track track;
	private Double ranking;
	
	public RecommendedTrack(Track track, Double ranking) {
		this.track = track;
		this.ranking = ranking;
	}

	public Track getTrack() {
		return track;
	}

	public Double getRanking() {
		return ranking;
	}

	@Override
	public int compareTo(RecommendedTrack rt) {
		return rt.getRanking().compareTo(this.ranking);
	}
	
}
